#pragma once

#include <gl\glew.h>

class FrameBufferObject
{
public:
  FrameBufferObject(){
  // dummy
  }
  
  void init();
  void enable();
  void disable();
  void attachTexture(GLuint textureId);
  void attachRenderBuffer(GLuint rboId);
  void checkStatus();
public:
  GLuint m_fboId; // So often needed its public. Bind, make FBO
private:
  GLuint m_width, m_height;
  bool isComplete;
};